//package com.dotflat.satistics.vo.general;
//
//import lombok.Data;
//
//import java.util.Map;
//
//import static com.matt.foundation.function.TimeComputeFunction.TIME_NAME;
//
///**
// * *******************************
// * Created by Tim.
// * form com.matt
// * on 2018/7/23
// * *******************************
// */
//@Data
//public class SignClienteleVo {
//    private String timeName;
//    private long nurseryCount = 0;
//    private long earlyCount = 0;
//    private long nurseryEarlyCount = 0;
//    private long otherCount = 0;
//
//    public static SignClienteleVo of(Map map){
//        SignClienteleVo vo = new SignClienteleVo();
//        vo.setTimeName(map.get(TIME_NAME).toString());
//        vo.setNurseryCount(map.get("nurseryCount") == null ? 0 : Long.valueOf(map.get("nurseryCount").toString()));
//        vo.setEarlyCount(map.get("earlyCount") == null ? 0 : Long.valueOf(map.get("earlyCount").toString()));
//        vo.setNurseryEarlyCount(map.get("nurseryEarlyCount") == null ? 0 : Long.valueOf(map.get("nurseryEarlyCount").toString()));
//        vo.setOtherCount(map.get("otherCount") == null ? 0 : Long.valueOf(map.get("otherCount").toString()));
//        return vo;
//    }
//}
